#!/usr/bin/env python
# -*- coding:utf-8 -*-

rate = 6.78
a = input()
if a[:3].upper() == 'RMB':
    res = 'USD%.2f' % (float(a[3:]) / rate)
elif a[:3].upper() == 'USD':
    res = 'RMB%.2f' % (float(a[3:]) * rate)
print(res)